package com.umfb.bootstrap.config;

import org.sitemesh.builder.SiteMeshFilterBuilder;
import org.sitemesh.config.ConfigurableSiteMeshFilter;
import org.sitemesh.content.tagrules.html.DivExtractingTagRuleBundle;

/**
 * Created by zcah on 18-5-22.
 */
public class ManagerSiteMeshFilter extends ConfigurableSiteMeshFilter {
    @Override
    protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {


        builder.addDecoratorPath("/*", "/WEB-INF/jsp/index.jsp").addExcludedPath("/login");

        builder.setMimeTypes("text/html", "application/xhtml+xml", "application/vnd.wap.xhtml+xml");

        builder.addTagRuleBundles(new DivExtractingTagRuleBundle());
    }
}
